import { NzTreeNodeOptions } from 'ng-zorro-antd';
import { EQUIPMENT_CODE, ACTION_LAYER_KEY, INCIDENT_CODE } from '../service/map-data.service';
import { GisComponent } from './../gis.component';
export let legendsData: NzTreeNodeOptions[] = [
    {
        title: 'Gis.Legends.treeData.Incident_Record',
        key: '1',
        icon: 'Incident_Record',
        isLayer: true,
        layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD,
        children: [
            {
                title: 'Gis.Legends.treeData.Accident',
                key: '1-1',
                isLeaf: true,
                isLayer: false,
                typeCode: INCIDENT_CODE.ACCIDENT,
                icon: 'Accident',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Bad_Weather',
                key: '1-2',
                isLeaf: true,
                typeCode: INCIDENT_CODE.BAD_WEATHER,
                isLayer: false,
                icon: 'Bad_Weather',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Congestion',
                key: '1-3',
                typeCode: INCIDENT_CODE.CONGESTION,
                isLeaf: true,
                isLayer: false,
                icon: 'Congestion',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Fire',
                key: '1-4',
                isLeaf: true,
                typeCode: INCIDENT_CODE.FIRE,
                isLayer: false,
                icon: 'Fire',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Obstacle',
                key: '1-5',
                isLeaf: true,
                typeCode: INCIDENT_CODE.OBSTACLE,
                isLayer: false,
                icon: 'Obstacle',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Reverse_Flow',
                key: '1-6',
                isLeaf: true,
                isLayer: false,
                typeCode: INCIDENT_CODE.REVERSE_FLOW,
                icon: 'Reverse_Flow',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Roadworks',
                key: '1-7',
                isLeaf: true,
                typeCode: INCIDENT_CODE.ROADWORKS,
                isLayer: false,
                icon: 'Roadworks',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            },
            {
                title: 'Gis.Legends.treeData.Road_Maintenance',
                key: '1-8',
                isLeaf: true,
                typeCode: INCIDENT_CODE.ROADMAINTENANCE,
                isLayer: false,
                icon: 'Road_Maintenance',
                layerCategory: ACTION_LAYER_KEY.INCIDENT_RECORD
            }
        ]
    },
    {
        title: 'Gis.Legends.treeData.Equipment',
        key: '2',
        icon: 'Equipment',
        isLayer: true,
        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
        children: [
            {
                title: 'Gis.Legends.treeData.CCTV',
                key: '2-1',
                icon: 'CCTV',
                isLayer: false,
                typeCode: EQUIPMENT_CODE.CCTV,
                layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                children: [
                    {
                        title: 'Gis.Legends.treeData.Active',
                        key: '2-1-1',
                        isLeaf: true,
                        isLayer: false,
                        icon: 'CCTV_Active',
                        typeCode: EQUIPMENT_CODE.CCTV,
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Active'
                    },
                    {
                        title: 'Gis.Legends.treeData.Failed',
                        key: '2-1-2',
                        isLeaf: true,
                        isLayer: false,
                        icon: 'CCTV_Failed',
                        typeCode: EQUIPMENT_CODE.CCTV,
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Failed'
                    },
                    {
                        title: 'Gis.Legends.treeData.Offline',
                        key: '2-1-3',
                        isLeaf: true,
                        isLayer: false,
                        icon: 'CCTV_Offline',
                        typeCode: EQUIPMENT_CODE.CCTV,
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Offline'
                    }
                ]
            },
            {
                title: 'Gis.Legends.treeData.VMS',
                key: '2-2',
                icon: 'VMS',
                isLayer: false,
                typeCode: EQUIPMENT_CODE.VMS,
                layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                children: [
                    {
                        title: 'Gis.Legends.treeData.Active',
                        key: '2-2-1',
                        isLeaf: true,
                        isLayer: false,
                        icon: 'VMS_Active',
                        typeCode: EQUIPMENT_CODE.VMS,
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Active'
                    },
                    {
                        title: 'Gis.Legends.treeData.Failed',
                        key: '2-2-2',
                        isLeaf: true,
                        isLayer: false,
                        icon: 'VMS_Failed',
                        typeCode: EQUIPMENT_CODE.VMS,
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Failed'
                    },
                    {
                        title: 'Gis.Legends.treeData.Offline',
                        key: '2-2-3',
                        isLeaf: true,
                        isLayer: false,
                        icon: 'VMS_Offline',
                        typeCode: EQUIPMENT_CODE.VMS,
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Offline'
                    }
                ]
            },
            {
                title: 'Gis.Legends.treeData.VD',
                key: '2-3',
                icon: 'VD',
                isLayer: false,
                typeCode: EQUIPMENT_CODE.VD,
                layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                children: [
                    {
                        title: 'Gis.Legends.treeData.Active',
                        key: '2-3-1',
                        isLeaf: true,
                        isLayer: false,
                        typeCode: EQUIPMENT_CODE.VD,
                        icon: 'VD_Active',
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Active'
                    },
                    {
                        title: 'Gis.Legends.treeData.Failed',
                        key: '2-3-2',
                        isLeaf: true,
                        isLayer: false,
                        typeCode: EQUIPMENT_CODE.VD,
                        icon: 'VD_Failed',
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Failed'
                    },
                    {
                        title: 'Gis.Legends.treeData.Offline',
                        key: '2-3-3',
                        isLeaf: true,
                        isLayer: false,
                        typeCode: EQUIPMENT_CODE.VD,
                        icon: 'VD_Offline',
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Offline'
                    }
                ]
            },
            {
                title: 'Gis.Legends.treeData.TSC',
                key: '2-4',
                icon: 'TSC',
                isLayer: false,
                typeCode: EQUIPMENT_CODE.TSC,
                layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                children: [
                    {
                        title: 'Gis.Legends.treeData.Active',
                        key: '2-4-1',
                        isLeaf: true,
                        isLayer: false,
                        typeCode: EQUIPMENT_CODE.TSC,
                        icon: 'TSC_Active',
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Active'
                    },
                    {
                        title: 'Gis.Legends.treeData.Failed',
                        key: '2-4-2',
                        isLeaf: true,
                        isLayer: false,
                        typeCode: EQUIPMENT_CODE.TSC,
                        icon: 'TSC_Failed',
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Failed'
                    },
                    {
                        title: 'Gis.Legends.treeData.Offline',
                        key: '2-4-3',
                        isLeaf: true,
                        isLayer: false,
                        typeCode: EQUIPMENT_CODE.TSC,
                        icon: 'TSC_Offline',
                        layerCategory: ACTION_LAYER_KEY.EQUIPMENT,
                        status: 'Offline'
                    }
                ]
            }
        ]
    },
    {
        title: 'Gis.Legends.treeData.Traffic_Data',
        key: '3',
        isLayer: true,
        isLeaf: true,
        icon: 'Traffic_Data',
        layerCategory: ACTION_LAYER_KEY.TRAFFIC_DATA
    },
    // {
    //     title: 'Gis.Legends.treeData.AVL',
    //     key: '4',
    //     isLayer: true,
    //     icon: 'AVL',
    //     layerCategory: ACTION_LAYER_KEY.AVL,
    //     children: [
    //         {
    //             title: 'Gis.Legends.treeData.Normal',
    //             key: '4-1',
    //             isLeaf: true,
    //             isLayer: false,
    //             icon: 'Normal',
    //             layerCategory: ACTION_LAYER_KEY.AVL
    //         },
    //         {
    //             title: 'Gis.Legends.treeData.Off_Line',
    //             key: '4-2',
    //             isLeaf: true,
    //             isLayer: false,
    //             icon: 'Off_line',
    //             layerCategory: ACTION_LAYER_KEY.AVL
    //         }
    //     ]
    // },
    {
        title: 'Gis.Legends.treeData.Zone',
        key: '5',
        isLayer: true,
        // isLeaf: true,
        icon: 'Zone',
        layerCategory: ACTION_LAYER_KEY.ZONE,
        children: []
    }
    // {
    //     title: 'Gis.Legends.treeData.User_Define_Area',
    //     key: '6',
    //     isLayer: true,
    //     isLeaf: true,
    //     icon: 'User_Define_Area',
    //     layerCategory: ACTION_LAYER_KEY.USER_DEFINE_AREA
    // }
];
